package com.ctl.shardingsphere.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ctl.shardingsphere.mapper.DsStoreMapper;
import com.ctl.shardingsphere.model.DsStore;
import com.ctl.shardingsphere.service.DsStoreService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class DsStoreServiceImpl extends ServiceImpl<DsStoreMapper, DsStore> implements DsStoreService {
    @Override
    public boolean save(DsStore entity) {
        return super.save(entity);
    }

    @Override
    public List<DsStore> getDsStoreList() {
        return baseMapper.selectList(Wrappers.lambdaQuery());
    }

}